Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.03 KB

73 - ChatOS - Firestore (cont.).md

File metadata and controls

25 lines (17 loc) · 1.03 KB
title date slug publish tags
73 - ChatOS - Firestore (cont.)
2023-07-31
100daysofcode-r3-73-chatos-firestore-cont
true

Livestream

<iframe width="100%" style="aspect-ratio: 16 / 9;" src="https://www.youtube.com/embed/" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Tasks

  • Separate chat messages from each users
    • Now when logged in, the chat logs from before logging in (guest session) will not transferred to user. To fix this issue I need to setup Firebase Admin and use Batch Write to manually copy logs from guest collection to user collection. That will be the task for another day.

The Firestore collection paths are now /users/:uid/messages and /guests/:sessionId/messages.